<?php 
if(!isset($_SESSION)) 
{ 
	session_start(); 
}

		if(isset($_SESSION['lang']))
		$lang=$_SESSION['lang'];
if (empty($lang) || $lang == "EN") {
	include "../../value/value_en.php";
} else if($lang == "VN") {
	include "../../value/value_vn.php";
}
else {
	include "../../value/value_kr.php";
}
include '../../operations/connection.php';
if(isset($_REQUEST['idgen'])){
	$query="SELECT sa_allowance_hard_holiday.* ,luem.FullName as lastuserupdate, crem.FullName as usercreate 
	from sa_allowance_hard_holiday left JOIN employee crem on crem.IDEmployee=sa_allowance_hard_holiday.user_created 
	left JOIN employee luem on luem.IDEmployee=sa_allowance_hard_holiday.user_last_update 
	where sa_allowance_hard_holiday.id=".$_REQUEST['idgen'];
	$kq=mysql_query($query);
	if(mysql_num_rows($kq)>0){
		while($row=mysql_fetch_array($kq)){
			$_REQUEST['is_late']=$row[is_late];
			$_REQUEST['is_half_dayoff']=$row[is_half_dayoff];
			$_REQUEST['allowance_holiday']=$row[allowance_holiday];
			$_REQUEST['is_all_dayoff']=$row[is_all_dayoff];
			$_REQUEST['sub_salary_day']=$row[sub_salary_day];
			$_REQUEST['allowance_hard']=$row[allowance_hard];
			$_REQUEST["abc"]=$row[is_status];
			$_REQUEST['user_create']=$row[usercreate];
			$_REQUEST['first_create']=$row[date_created];
			$_REQUEST['user_last_update']=$row[lastuserupdate];
			$_REQUEST['time_last_update']=$row[date_last_update];
		}
	}
}
?>
				<table style="border-bottom: 1px dotted silver; padding:10px 5px" width="100%">
					<tr>
						<td class="tdfirst" ><?php echo $l_late;?>:<span style="color:red;font-weight: bold;float:right;">(*)</span></td>
						<td><input type="text" value="<?=$_REQUEST['is_late']?>" onkeypress="return enterTable(event,this.id);"  name="is_late" id="is_late"  class="in_testfield" style="width:516px" /><span style="padding-left:5px"><?php echo "(".$l_lan.")"?></span></td>
					</tr>
					<tr>
					<td class="tdfirst"><?php echo $l_half_dayoff;?>:<span style="color:red;font-weight: bold;float:right;">(*)</span></td>
					<td><input type="text" value="<?=$_REQUEST['is_half_dayoff']?>" onkeypress="return enterTable(event,this.id);" name="is_half_dayoff" id="is_half_dayoff" class="in_testfield" style="width:516px" /><span style="padding-left:5px"><?php echo "(".$l_lan.")"?></span></td>
					</tr> 
					<tr>
						<td class="tdfirst"><?php echo $l_all_dayoff;?>:<span style="color:red;font-weight: bold;float:right;">(*)</span></td>
						<td><input type="text" value="<?=$_REQUEST['is_all_dayoff']?>" onkeypress="return enterTable(event,this.id);" name="is_all_dayoff" id="is_all_dayoff"  class="in_testfield" style="width:516px" /><span style="padding-left:5px"><?php echo "(".$l_lan.")"?></span></td>
					</tr>
					<tr>
					<td class="tdfirst"><?php echo $l_allowance_hard;?>:<span style="color:red;font-weight: bold;float:right;">(*)</span></td>
					<td><input type="text" value="<?=number_format($_REQUEST['allowance_hard'])?>" onkeypress="return enterTable(event,this.id);" id="allowance_hard" name="allowance_hard" class="in_testfield" style="width:516px" /> </td>
					</tr>
					<tr>
					<td class="tdfirst"><?php echo $l_sub_salary_day;?>:<span style="color:red;font-weight: bold;float:right;">(*)</span></td>
					<td><input type="text" value="<?=$_REQUEST['sub_salary_day']?>" onkeypress="return enterTable(event,this.id);" id="sub_salary_day" name="sub_salary_day" class="in_testfield" style="width:516px" /><span style="padding-left:5px"><?php echo "(".$l_ngay.")"?></span> </td>
					</tr>
					<tr>
					<td class="tdfirst"><?php echo $l_allowance_holiday;?>:<span style="color:red;font-weight: bold;float:right;">(*)</span></td>
					<td><input type="text" value="<?=number_format($_REQUEST['allowance_holiday'])?>" onkeypress="return enterTable(event,this.id);" id="allowance_holiday" name="allowance_holiday" class="in_testfield" style="width:516px" /> </td>
					</tr>
					<tr>
					<td class="tdfirst"><?php echo $l_Activestatus;?>:</td>
					<td>
						<input type="radio"  id="abc" name="abc" value="1" <?php if ($_REQUEST["abc"]=="1") echo "checked";?> /> <?php echo $l_apdung;?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="radio" name="abc" id="abc"  value="0" <?php if ($_REQUEST["abc"]=="0") echo "checked";?>/> <?php echo $l_status_saved;?>
					</td>
					</tr>
					<tr>
					<td class="tdfirst"><?php echo $l_user_create;?>:</td>
					<td><input type="text" value="<?php echo $_REQUEST['user_create'];?>" onkeypress="return enterTable(event,this.id);" id="user_create" name="user_create" class="in_testfield" style="width:516px;background: #d7d9dd;"  readonly="readonly" /> </td>
					</tr>
					<tr>
					<td class="tdfirst"><?php echo $l_first_create;?>:</td>
					<td><input type="text" value="<?php echo $_REQUEST['first_create'];?>" onkeypress="return enterTable(event,this.id);" id="first_create" name="first_create" class="in_testfield" style="width:516px;background: #d7d9dd;"  readonly="readonly" /> </td>
					</tr>
					<tr>
					<td class="tdfirst"><?php echo $l_user_last_update;?>:</td>
					<td><input type="text" value="<?php echo $_REQUEST['user_last_update'];?>" onkeypress="return enterTable(event,this.id);" id="user_last_update" name="user_last_update" class="in_testfield" style="width:516px;background: #d7d9dd;" readonly="readonly" /> </td>
					</tr>
					<tr>
					<td class="tdfirst"><?php echo $l_time_last_update;?>:</td>
					<td><input type="text" value="<?php echo $_REQUEST['time_last_update'];?>" onkeypress="return enterTable(event,this.id);" id="time_last_update" name="time_last_update" class="in_testfield" style="width:516px;background: #d7d9dd;" readonly="readonly" /> </td>
					</tr>
				</table>
				<?php mysql_close($connection);?>